package yf.mall.dao;

import org.apache.ibatis.annotations.Param;
import yf.mall.entity.TeamSaleEntity;
import yf.mall.vo.TeamSaleVo;
import org.apache.ibatis.annotations.Mapper;
import com.yf.dao.BaseDao;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
 * 月销业绩Dao
 *
 *
 *
 * @date Wed Oct 27 14:46:14 CST 2021
 */
@Mapper
public interface TeamSaleDao extends BaseDao<TeamSaleEntity> {

    List<TeamSaleVo> findVo(TeamSaleVo vo);

    TeamSaleVo getVo(Long id);

    BigDecimal sumPrice(@Param("userId") Long userId, @Param("date") Date date);

    BigDecimal sumTotalPrice(@Param("userId") Long userId, @Param("date") Date date);

    void remove(String orderNo);

}
